<?php

declare(strict_types=1);

namespace App\Robot\Crontab;

use App\CustHub\Constants\SendRecordStatusConstants;
use App\CustHub\Model\ChSendRecord;
use App\CustHub\Service\ChCrowSendingService;
use App\CustHub\Service\ChSendRecordService;
use Hyperf\Di\Annotation\Inject;

/**
 * 群发生成发送主表，等待执行
 */
class CrowdSendingCrontab
{
    #[Inject]
    protected ChCrowSendingService $crowSendingService;

    public function execute(): string
    {
        var_dump('群发定时任务发送...');
        $this -> crowSendingService -> sendingProcess();
        return 'send crowd_sending successfully';
    }
}